import { get, post } from "./http"

//新人专享
export const reqgetnew = () => get("/api/getnew");
//万人团
export const reqgetgroupon = () => get("/api/getgroupon");
//轮播
export const reqgetbanner = () => get("/api/getbanner");
//倒计时
export const reqgetcountdown = () => get("/api/getcountdown");
//秒杀
export const reqgetseckill = () => get("/api/getseckill");
//商品信息首页
export const reqgetindexgoods = () => get("/api/getindexgoods");
//商品分类
export const reqgetcate = () => get("/api/getcate");
//分类商品
export const reqgetgoods = () => get("/api/getgoods");
//优惠劵
export const reqgetcoupon = () => get("/api/getcoupon");
//购物车
// 增加
export const reqcartadd = (p) => post("/api/cartadd", p);
//删除
export const reqcartdelete = (p) => post("/api/cartdelete", p);
//修改
export const reqcartedit = (p) => post("/api/cartedit", p);
//查询
export const reqcartlist = (p) => get("/api/cartlist", p)
//详情
export const reqgetgoodsinfo = (p) => get("/api/getgoodsinfo", p);

//注册
export const reqregister = (params) => post("/api/register", params)
//登录
export const reqlogin = (params) => post("/api/login", params)

;

